package com.sais.manage.boot.daily.dto;

import com.sais.manage.boot.daily.entity.Application;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.time.LocalDateTime;

/**
 * 宿舍管理平台-宿舍楼保存DTO
 *
 * @author zwp
 * @date 2020/2/2
 */
@Data
@NoArgsConstructor
public class ApplicationSaveDTO {

    private String ukId;
    private String userId;
    private String name;
    private Integer type;
    private String phone;
    private String content;

    private LocalDateTime startTime;
    private LocalDateTime endTime;

    public Application convert() {
        Application application = new Application();
        BeanUtils.copyProperties(this, application);
        return application;
    }

}
